﻿using AutoMapper;
using MemorySiteServer.Models;
using MemorySiteServer.ViewModels.AccountViewModels;
using MemorySiteServer.ViewModels.FavoriteGroupViewModels;
using MemorySiteServer.ViewModels.FavoriteViewModels;
using MemorySiteServer.ViewModels.RoleViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MemorySiteServer
{
    public class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<RoleCreateRequest, Role>();
            CreateMap<User, AccountGetListResponse>();
            //收藏夹目录
            CreateMap<FavoriteGroupCreateRequest, FavoriteGroup>();
            CreateMap<FavoriteGroupPatchRequest, FavoriteGroup>();
            //收藏夹
            CreateMap<FavoriteCreateRequest, Favorite>();
            CreateMap<FavoritePatchRequest, Favorite>();
        }
    }
}
